﻿using System.Web;
using System.Web.Mvc;
using TeachingEval.Sys.UI.Models;

namespace SchoolStudentWork
{
    public class FilterConfig
    {
        public static void RegisterGlobalFilters(GlobalFilterCollection filters)
        {
            //ActionFilter  ResultFilter

            //第三种filter:异常过滤器

            //filters.Add(new HandleErrorAttribute());
            filters.Add(new MyExceptionFilterAttribute());
        }
    }
}